import React from 'react';

class View extends React.Component {

    constructor(props) {
        super(props)
        this.handerClick = this.handerClick.bind(this)
    }

    handerClick() {
        alert("click")
    }

    render() {
        return (
            <button onClick={this.handerClick}>click me</button>
        );
    }
}
export default View;